package cn.kgc.springbootdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <h3>springbootdemo</h3>
 * <p>修改用户表单</p>
 *
 * @author : DongZeJian
 * @date : 2020-05-01 14:49
 **/
@ApiModel(value = "修改用户表单")
@Data
public class UpdateUserInfoForm implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户Id",name = "id")
    @NotBlank(message = "用户ID不能为空")
    private String id;

    /**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称",name = "userName")
    @NotBlank(message = "用户名称不能为空")
    private String userName;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别",name = "sex")
    @NotNull(message = "性别不能为空")
    private Integer sex;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    private String phone;

    /**
     * 身份证
     */
    @ApiModelProperty(value = "身份证",name = "idCard")
    private String idCard;

    /**
     * 出生日期
     */
    @ApiModelProperty(value = "出生日期",name = "birth")
    @NotNull(message = "出生日期不能为空")
    private LocalDate birth;

    @ApiModelProperty("头像地址")
    private String hederUrl;
}
